/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package exatrez.quartz;

import com.google.inject.Inject;
import exatrez.manager.CronVisitManager;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.StatefulJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author Mansur
 */
public class CronVisitEmailJob implements StatefulJob{
    
    private static Logger LOGGER = LoggerFactory.getLogger(CronVisitEmailJob.class);
    
    @Inject
    private CronVisitManager manager;

    @Override
    public void execute(JobExecutionContext jec) throws JobExecutionException {
        LOGGER.debug("Visit : execute : start");
        manager.checkAndEmail();
    }
    
}
